package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.EntrustInfoListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 我的委托房源
 * Created by Lihq on 2016/3/14.
 */
public class EntrustInfoListRequestApi extends UserCenterApi<EntrustInfoListRo>{
    private String UserId = "";
    private String CityCode;
    private int Count = 1000;
    private int FirstIndex;
    private String IsDel = "false";
    private String EntrustType = "";

    public void setUserId(String userId) {
        UserId = userId;
    }

    public void setCityCode(String cityCode) {
        CityCode = cityCode;
    }

    public void setCount(int count) {
        Count = count;
    }

    public void setFirstIndex(int firstIndex) {
        FirstIndex = firstIndex;
    }

    public void setIsDel(String isDel) {
        IsDel = isDel;
    }

    public void setEntrustType(String entrustType) {
        EntrustType = entrustType;
    }

    public EntrustInfoListRequestApi(Class<?> tag, Class<EntrustInfoListRo> aClass, IResponseListener<EntrustInfoListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }


    @Override
    public int getMethod() {
        return Request.Method.GET;
    }

    @Override
    public void setParams() {
        putParams("UserId",UserId);
        putParams("CityCode", CityCode);
        putParams("Count", Count);
        putParams("FirstIndex", FirstIndex);
        putParams("IsDel", IsDel);
        putParams("EntrustType", EntrustType==null?"":EntrustType);
    }


    @Override
    public String getPath() {
        return "EntrustInfoListRequest";
    }
}
